﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Class_DAO;
using Class_DTO;
using System.Data;

namespace Class_BUS
{
    public class ThongTinQCBUS
    {
        public static DataTable LoadDS_QuangCao()
        {
            ThongTinQCDAO QCdao = new ThongTinQCDAO();
            DataTable dt = new DataTable();
            dt = QCdao.getDanhSachQC ();
            return dt;
        }
        public static DataTable getQuangCao_theoma(int pMa)
        {
            ThongTinQCDAO QCdao = new ThongTinQCDAO();
            DataTable dt = new DataTable();
            dt = QCdao.getQuangCao_theoma(pMa);
            return dt;
        }

        public static bool ThemQuangCao_BUS(ThongTinQCDTO dto)
        {
            ThongTinQCDAO QCdao = new ThongTinQCDAO();

            QCdao.ThemQuangCao_DAO(dto);
            return true;

        }
      
    }
}
